package com.dd.ent.car.common.player;

/**
 * Author:LiuJianSheng
 * Date:2016/7/27
 */
public interface PlayerListener {

    void onBufferingUpdate(MediaPlayerWrapper mp, int percent);

    void onCompletion(MediaPlayerWrapper mp);

    boolean onError(MediaPlayerWrapper mp, int what, int extra);

    boolean onInfo(MediaPlayerWrapper mp, int what, int extra);

    void onVideoSizeChanged(MediaPlayerWrapper mp, int width, int height);

    void onPrepared(MediaPlayerWrapper mp);

    void onPlayPositionChange(int newPosition);

    void onSeekComplete(MediaPlayerWrapper mp);
}
